<?php

class openapi_api_params_v1_comment extends openapi_api_params_abstract implements openapi_api_params_interface{

    public function checkParams($method,$params,&$sub_msg,$defined_params=array(),$dataType='kv'){
        if(parent::checkParams($method,$params,$sub_msg,$defined_params,$dataType)){
            return true;
        }else{
            return false;
        }
    }

    public function getAppParams($method){
        $params = array(
            'getcomment'=>array(
                'goods_id'=> array('required'=>'true','type'=>'int','name'=>'商品ID'),
                'append'=>array('required'=>'false','type'=>'string','name'=>'查看追加'),
                'page'=>array('required'=>'false','type'=>'int','name'=>'页码'),
                'pagesize'=>array('required'=>'false','type'=>'int','name'=>'分页大小'),
                'login_token'=>array('required'=>'false','type'=>'string','name'=>'登录token')
            ),
        );

        return $params[$method];
    }

    public function description($method){
        $description = array(
            'getcomment'=>array(
                'name'=>'用户评论接口',
                'desccription'=>'获取用户评论列表',
            ),
        );
        return $description[$method];
    }
    
}